package xin.marcher.module.common.domain;

import lombok.Data;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * MySQL的binlog对象
 */
@Data
public class BinlogData implements Serializable {

    private static final long serialVersionUID = 4579426193672749274L;

    /**
     * binlog对应的表名
     */
    private String tableName;
    /**
     * 操作时间
     */
    private Long operateTime;
    /**
     * 操作类型
     */
    private String operateType;

    /**
     * data节点转换成的Map，key对应的是bean里的属性名，value一律为字符串
     */
    private List<Map<String, Object>> dataMap;

    /**
     * data节点转换成的Map，key对应的是bean里的属性名，value一律为字符串
     */
    private List<Map<String, Object>> oldMap;

}
